package com.org.shichui.dao;

import com.org.shichui.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 查看账号是否重复
     * @param phone
     * @return
     */
    User selectByPhone(@Param("phone") String phone);

    /**
     * 登陆
     * @param phone
     * @param password
     * @return
     */
    User login(@Param("phone") String phone, @Param("password") String password);

}